const ScenicSpot = require('../../model/scenicSpot/ScenicSpot')

function search(req,res){

    ScenicSpot.find({_id: req.query.search})
      .then((result)=>{
          if(result){
              res.json({
                  code:1,
                  msg: '查询成功',
                  data: result
              })
          }else{
              res.json({
                  code:0,
                  msg: '登录失败'
              })
          }
      })
}
module.exports = search